﻿public class prac_06 {
	public static void main(String[] args){
		int day = 0;
		System.out.println("\t\t\t<  2017年8月     >");
		System.out.println("----------------------------------------------------------------");
		System.out.println();;
		System.out.println("\t日\t一\t二\t三\t四\t五\t六");
		if(day==0){
			System.out.print("\t\t");

			while(day<31){
				day++;
				System.out.print("\t"+day);

				if(day==5||day==12||day==19||day==26){
					System.out.println();
				}
			}
		}
		System.out.println();
		System.out.println("----------------------------------------------------------------");
	}
}